package imachine.engine;

import imachine.State;

import java.util.ArrayList;
import java.util.HashMap;

class EngineState {
	EngineState(final State state, final Engine parent) {
		this.state = state;
		if (state.subMachine != null) {
			subEngine = new Engine(state.subMachine, parent);
		} else {
			subEngine = null;
		}
	}

	final State state;
	final Engine subEngine;
	HashMap<Integer, EngineTransition> eventMap = new HashMap<Integer, EngineTransition>();

	ArrayList<Action> entryActions = new ArrayList<Action>();
	ArrayList<Action> exitActions = new ArrayList<Action>();

}
